[NTG-context] Re: command line arguments

2024-03-19 Thread Willi Egger
Hello Hraban, I puzzled a while. To me the —arguments= option does not work. I saw then on the Wiki, that one can also add documentarguments as —schema=2UP —numberofpages=16. I further changed to \startdocument … \stopdocument. Please look at the attached file Willi impositiontest-2.tex

[NTG-context] Drawing calligraphy practice grid in metafun

2023-11-20 Thread Andres Conrado Montoya
) ; aa = Section(ascender, oo) ; % Devolver posicion final con espacio para siguiente renglon aa + nib*2 enddef ; % Llenar la página con renglones for i=1 upto availableLines : start := Line(dsc, asc, med, start) ; endfor ; \stopreusableMPgraphic \startdocument \startstan

[NTG-context] Footnotes on the bottom of the column's current page, instead of the columns' end

2023-10-25 Thread Juliano David Hilario
eargument] \setupnotation[question][counter=] \startdocument \startcolumns[n=2, balanced] \dorecurse{19}{ \question{1. This is a question for discussion. I wished it was on the current page instead of the end} \input{knuth} } \stopcolumns \stopdocument mwe.pdf Description: Adobe PDF

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
] \setcounter [userpage] [0] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument \setupfootertexts [title

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
... \stopbuffer \startbuffer spanish ... \stopbuffer \startsetups [document:stop] ... \stopsetups \startdocument [spanisabstract={\getbuffer[spanish]}, ] ... \stopdocument untested, just keyed

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
(e.g. startdocument/stopdocument or startproduct/stopproduct). Replace cont-yes.mkiv with the newer equivalent. And you're right though. \starttext is not even needed most of the times. And now it gets even worse, see https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf why

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
}} % \quad % \imghref % {\externalfigure[gscholar.pdf][logo]} % {\datasetvariable{autores}{\recurselevel}{nombre}} % \quad % \datasetvariable{autores}{\recurselevel}{nombre}\par % \stopsetups Just loop over the set and call up the variables in the setup: % \startdocument

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
[gscholar.pdf][logo]} {\userdataparameter{gscholar}} \quad \userdataparameter{author}\par \stopsetups \defineuserdata[idautor][alternative=idautor] \startdocument % I have to manually set the length of the dataset in the loop and use recurselevel... % Maybe there is a way to use the length

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Wolfgang Schuster
Alan Braslau via ntg-context schrieb am 06.07.2023 um 09:34: Hello, Trying to use: \startdocument \startpagefigure[Coverpages.pdf][page=1]\stoppagefigure \startpagefigure[Coverpages.pdf][page=2]\stoppagefigure % before \startmakeup [titlepage] front \stopmakeup \startmakeup [titlepage

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Henning Hraban Ramm
Am 06.07.23 um 11:58 schrieb Alan Braslau: Maybe it’s also a problem of \startdocument – I always get a first empty page and don’t understand why. One gets an empty first page if there is *any* text content anywhere in the setups or environment files before the \startdocument. My problem

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Alan Braslau via ntg-context
up[cover][page][page=no,doublesided=no] \definelayout[cover][page] \startmakeup [cover] \filterpages[Coverpages][1] \stoppagemakeup \startmakeup [cover] \filterpages[Coverpages][2] \stoppagemakeup Thank you for your suggestion! Maybe it’s also a problem of \startdoc

[NTG-context] definedocument, begin & closing

2023-07-06 Thread Henning Hraban Ramm
Hi, if I use \startdocument, the setups "document:start" and "document:stop" get inserted at the beginning and end. But if I define my own document, it doesn’t work. What’s wrong? """ \definedocument[presentation] \startsetups[presentation:start] {\bfd\d

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Henning Hraban Ramm
] ? Maybe it’s also a problem of \startdocument – I always get a first empty page and don’t understand why. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-co

[NTG-context] Title pages makeup extra blank pages

2023-07-06 Thread Alan Braslau via ntg-context
Hello, Trying to use: \startdocument \startpagefigure[Coverpages.pdf][page=1]\stoppagefigure \startpagefigure[Coverpages.pdf][page=2]\stoppagefigure % before \startmakeup [titlepage] front \stopmakeup \startmakeup [titlepage] back \stopmakeup \startfrontmatter ... \stopfrontmatter

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread jbf via ntg-context
. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [{\pagenumber \hskip1em \setup{headertext}}] [ ] My second attempt (quite crass, but it works

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread Hans Hagen via ntg-context
On 1/30/2023 1:14 AM, jbf via ntg-context wrote: Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title

[NTG-context] how to change metadata halfway through document

2023-01-29 Thread jbf via ntg-context
Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-26 Thread Hans Hagen via ntg-context
stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|p|em}{xml:*}\stopxmlsetups \startxmlsetups xml:html \startdocument \xmlflush{#1} \stopdocument\stopxmlsetups % Paragraphs are followed by a paragraph break, but only if

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-25 Thread Thangalin via ntg-context
mldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|p|em}{xml:*}\stopxmlsetups \startxmlsetups xml:html \startdocument \xmlflush{#1} \stopdocument\stopxmlsetups % Paragraphs are followed by a paragraph break, but only if not nested.\startxmlsetups xml:p \xmlfunction{#1}{p} \par\sto

[NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-22 Thread juh+ntg-context--- via ntg-context
] \startdocument \starttext \input lorem \stoptext \stopdocument When I create a pdf from LibreOffice with these fonts I have a good display. pdffonts shows different font inclusion: pdffonts libreoffice.pdf name type encoding emb sub uni object ID

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
I found a way to wrap everything before \startdocument, so I think this looks like a template more or less: In case anyone is interested, here's the MWE: \definenote[address] \setupnote[address][rule=off,location=text] \setupnotation[footnote][numberconversion=numerals] \definenote

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
:setup \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:setup} \startxmlsetups xml:document \xmlfilter{#1}{/title/command(xml:title)} \xmlfilter{#1}{/author/command(xml:author)} \startdocument \xmlflush{#1} \stopdocument \

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Wolfgang Schuster via ntg-context
] [page=no] \startdocument [title={Dummy title}] \dorecurse{5}   {\startchapter[title={Chapter \convertnumber{word}{#1}}]    \samplefile{lorem}    \stopchapter} \stopdocument Wolfgang ___ If your question

Re: [NTG-context] Dynamic document variables from metadata

2022-01-02 Thread Thangalin via ntg-context
> > \setupdocument[metadata:author={\xmlatt{#1}{content}}] > > \setupinteraction[author={\documentvariable{author}}] \stopxmlsetups % > > How can this be generalized? %\startxmlsetups xml:journal > > %\setupdocument[journal={\xmlatt{#1}{content}}] %\stopxmlsetups > > \

Re: [NTG-context] Dynamic document variables from metadata

2022-01-02 Thread Hans Hagen via ntg-context
zed? %\startxmlsetups xml:journal %\setupdocument[journal={\xmlatt{#1}{content}}] %\stopxmlsetups \startxmlsetups xml:body \startdocument Author: \documentvariable{author} \par Journal: \documentvariable{journal} \stopdocument \stopxmlsetups \xmlprocessbuffer{main}{xdoc}{}| \startxmlsetups xml:set

[NTG-context] Dynamic document variables from metadata

2022-01-01 Thread Thangalin via ntg-context
nt}}]%\stopxmlsetups \startxmlsetups xml:body \startdocument Author: \documentvariable{author} \par Journal: \documentvariable{journal} \stopdocument\stopxmlsetups \xmlprocessbuffer{main}{xdoc}{} Thank you! ___

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin product \startproduct[terminale-manual] \project[terminale-environment] \startdocument \startfrontmatter ... \stopfrontmatter \startbodymatter \component

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-18 Thread Wolfgang Schuster
but it's also possible to load it before them. There are reasons for both positions and when you choose one you should keep it for all files. 4. \startdocument In my product file I added a document-environment, while it isn't necessary in this case it provides a nice hook to insert a title page

[NTG-context] new page before xtable with repeated headers

2021-04-23 Thread Werner Hennrich
header] \setupxtable[mytable:header] [ foregroundstyle=\bf, foregroundcolor=darkred, ] % == \startdocument \dorecurse{2} { \input tufte \vskip7mm } \startxtable[mytable] \startxtablehead \startxrow[mytable:header] \startxcell Some Header \stopxcell \st

[NTG-context] update and meeting

2020-09-15 Thread Hans Hagen
eally used, but no overhead either). (2) Another change is in the \startdocument mechanism. This (already old and rusted) wrapper runs on top of variables but we think no one knows (or uses) that. So, it now is a real wrapper with inheritance and such. It is dedicated to Tomas Hala who had to struggle wi

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf
the header (title of the book) on the verso pages, which is drawn from the simple statement: \startdocument   [metadata:title={Book title}] Shouldn't  \setupheader affect both headers? Or is it possible I have left something out of my \setupheader declaration? A minimal example will make

Re: [NTG-context] defining font family for several options

2020-09-03 Thread Aditya Mahajan
but it doesn't seem Better to use style={\switchtobodyfont[10pt,ss]} or \switchtobodyfont[10pt]\ss... > to affect the header (title of the book) on the verso pages, which is > drawn from the simple statement: > > \startdocument >   [metadata:title={Book title}] > > Shouldn

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf
of the book) on the verso pages, which is drawn from the simple statement: \startdocument   [metadata:title={Book title}] Shouldn't  \setupheader affect both headers? Or is it possible I have left something out of my \setupheader declaration? Julian On 4/9/20 5:30 am, Otared Kavian wrote: Hi Julian

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Alan Braslau
}}, metadata:author={\documentvariable{author}}, metadata:keywords={\documentvariable{keywords}}] \startdocument [title={My title}] \input knuth \stopdocument end example Wolfgang Thank you, Wolfgang. The above example does work. It fails to set the metadata if one moves the \setupdocument

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Henning Hraban Ramm
metadata:author={\documentvariable{author}}, >>> metadata:keywords={\documentvariable{keywords}}] >>> >>> \startdocument [title={My title}] >>> \input knuth >>> \stopdocument >>> end example >>> >>> Wolfgang >> &

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Wolfgang Schuster
   [metadata:title={\documentvariable{title}},     metadata:subtitle={\documentvariable{subtitle}},     metadata:author={\documentvariable{author}},     metadata:keywords={\documentvariable{keywords}}] \startdocument [title={My title}] \input knuth \stopdocument end example Wolfgang Thank you, Wolfgang

Re: [NTG-context] \documentvariable (used in environment)

2020-07-24 Thread Alan Braslau
}},    metadata:subtitle={\documentvariable{subtitle}},    metadata:author={\documentvariable{author}},    metadata:keywords={\documentvariable{keywords}}] \startdocument [title={My title}] \input knuth \stopdocument end example Wolfgang Thank you, Wolfgang. The above example does work. It fails

Re: [NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Wolfgang Schuster
}},    metadata:keywords={\documentvariable{keywords}}] \stopenvironment and correct use would be \environment MYENVIRONMENT \startdocument [title={My title}] \stopdocument because, of course, the environment contains more than \setupdocument such as font loading that should be done before

[NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Alan Braslau
}}] \stopenvironment and correct use would be \environment MYENVIRONMENT \startdocument [title={My title}] \stopdocument because, of course, the environment contains more than \setupdocument such as font loading that should be done before the \startdocument. The metadata does not get set

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
gt; %-- Working example, but it is not what I need -- > > \setupindenting[yes,small] > > \defineconversion[mymix][1,\m{*},2] > > > > \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] > > >

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Hans Hagen
upnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\footnote{This is the

[NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
small,next},numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\footnote{This is the second footnote and its mark is "*". } This is the third sent

[NTG-context] \beginBLOCKS and \endBLOCKS do not work in \dorecurse

2019-11-11 Thread Romain Diss
Hi, I cannot make \beginBLOCKS and \endBLOCKS work in a \dorecurse loop. Is it possible? Here is a minimum non working exemple (from https://wiki.contextgarden.net/Command/defineblock): %% \startdocument \defineblock[question] \hideblocks[question] % We don't want to print blocks where we

Re: [NTG-context] Custom Footertext

2019-09-30 Thread Pablo Rodriguez
t[pagella] > \setupbodyfont[pagella,12pt] I would say that the first line isn’t required. > \setupcolors[state=start] If I’m not wrong, this is also the default. > \setupfootertexts[section][] This might be what you need: \setupfootertexts[section][\getvariable{document}{metad

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
pcombinedlist[content][level=1] \setupexternalfigures[directory={images}] \startdocument[ metadata:title={MkIV Context Notes}, metadata:subtitle={}, metadata:subject={MkIV Context}, affiliation=Context] \starttext \startfrontmatter \title{MkIV \CONTEXT\ Notes.} \startcolumns[n=2] \input zapf \st

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Wolfgang Schuster
Jeroen schrieb am 29.09.2019 um 20:36: This is the main file. Neither minimal nor complete and \stopdocument is also missing. \environment mkivcnotesenv \startdocument  [metadata:subject={MkIV Context},    affiliation=Context] \starttext \startfrontmatter \input{frontpage.tex} \stopfrontmatter

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
This is the main file. \environment mkivcnotesenv \startdocument [metadata:subject={MkIV Context}, affiliation=Context] \starttext \startfrontmatter \input{frontpage.tex} \stopfrontmatter \startbodymatter \section{Introduction} \dorecurse{10}{input knuth} \stopbodymatter \startappendices

Re: [NTG-context] sorttype option not recognized in setupbtxrendering

2019-03-19 Thread Romain Diss
option work. If I first define a named rendering with '\definebtxrendering', the 'sorttype' is correctly read... Don't know why it doesn't work with the default rendering. > % test-biblio.tex > \usebtxdataset[biblio.bib] \definebtxrendering[example] \setupbtxrendering[example][sorttype=index]

[NTG-context] sorttype option not recognized in setupbtxrendering

2019-03-19 Thread Romain Diss
] \setupbtxrendering[sorttype=index] \startdocument \startchapter[title=First chapter] \input ward \cite[ward,knuth]\blank \placelistofpublications \stopchapter

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
ftframe=on, rulethickness=.1em, framecolor=red] \startdocument \startchapter[title=A chapter] \input knuth \cite[knuth]\blank \input ward \cite[ward]\blank \placelistofpublications[criterium=chapter] \stopchapter \stopdocument % end % biblio.bib @book{knut

[NTG-context] Bibliography : wrong order of references when rendered by chapter

2019-03-18 Thread Romain Diss
'non' working example (in the second chapter, ward reference should be numbered 1 and knuth should be 2, following the order of appearence in the bibliography list): % mnwe.tex \usebtxdataset[biblio.bib] \setupbtxrendering [repeat=yes, continue=no, method=local] \startdocument

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
ber. > > ... it's not a godo idea to use that hook to add content > > I'm not adding content, it was just for the MWE. I'll post another > > thread about what I intend to achieve. > > When you use \startdocument you can use > > \startsetups [document:start] >

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 18:34: On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: MWE: \startcomponent * \appendtoks Foobar \to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: > > MWE: > > > > \startcomponent * > >\appendtoks Foobar \to\everystarttext > >\startdocument\null\stopdocument > > \stopcomponent > > > > If the first and last line is comm

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Hans Hagen
? MWE: \startcomponent * \appendtoks Foobar \to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when compiled as a component it doesn't. it kicks in when context things a text starts (so earler in this case

[NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
\to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when compiled as a component it doesn't. Marco ___ If your question is of interest

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
text etc. at the begin and end of the document (which can be used to insert a titlepage or endpage). You can even use \startdocument (or \setupdocument) to set the document name in the pdf viewer (yes it can also be done with \setupinteraction but \startdocument is nicer). A minimal file would

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn
can be > used to insert a titlepage or endpage). You can even use \startdocument (or > \setupdocument) to set the document name in the pdf viewer (yes it can also > be done with \setupinteraction but \startdocument is nicer). > > A minimal file would be > > \star

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
content in a document environment which has hooks to insert text etc. at the begin and end of the document (which can be used to insert a titlepage or endpage). You can even use \startdocument (or \setupdocument) to set the document name in the pdf viewer (yes it can also be done

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Wolfgang Schuster
\startxmlsetups [xml:testsetups] \xmlsetsetup{\xmldocument}{document}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups [xml:document] \mainlanguage[\xmlatt{#1}{language}] \startdocument \xmlflush{#1} \stopdocument \stopxmlsetups % The “document:start” setup

Re: [NTG-context] Questions about \starttext

2018-04-15 Thread Tomas Hala
he distribution there are a lot of manuals of which the setup # demonstrates ways to organize ... one probably not known to all is # # \startdocument[settings] ... \stopdocument ok, where can I find it? The thing I am a bit confused and which was the main reason of my question, is why the compiler

Re: [NTG-context] Questions about \starttext

2018-04-03 Thread Hans Hagen
ganize ... one probably not known to all is \startdocument[settings] ... \stopdocument Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands te

Re: [NTG-context] Presentation sections identified by color and mark

2018-02-04 Thread Hans Hagen
ext]   [background={PageShape}] \starttext \setupdocument[title={Title},location={Place}] \startdocument   \definecolor[BackgroundColor][r=0,g=.7,b=0]   \startTopic[title={Topic Green}]     Some text A     \startSubject[title={Some green 1}]   more text B     \stopSubject     \st

[NTG-context] Presentation sections identified by color and mark

2018-02-03 Thread jmmora
olor contrastcolor ; fi ; StopPage ; \stopuseMPgraphic \setupbackgrounds [text] [background={PageShape}] \starttext \setupdocument[title={Title},location={Place}] \startdocument \definecolor[BackgroundColor][r=0,g=.7,b=0] \startTopic[title={Topic Green}] Some text A \start

[NTG-context] sectionconversionset not working for table of contents

2017-09-18 Thread Stephens, Kenny
] [style=\bigbodyfont\bold, alternative=b,] \setuplist [section] [width=2.0em, margin=2.0em, alternative=c,] \setuplist [subsection] [width=3.0em, margin=4.0em, style=slanted, alternative=c,] \startdocument \startfrontmatter \placecontent[criterium=all] \stopfrontmatter

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-26 Thread Thomas Widmann
mn >> until the column doesn't generate orphan/widow >> >> Is this possible with ConTeXt/LuaTeX? > > maybe be more explicit with very large penalties helps > > \startdocument > > \showmakeup[penalty] > > [...] > > \stopdocument Thanks, Hans, that's a ver

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-25 Thread Hans Hagen
repeat adjust parameters (column width, looseness, ...) typeset column until the column doesn't generate orphan/widow Is this possible with ConTeXt/LuaTeX? maybe be more explicit with very large penalties helps \startdocument \showmakeup[penalty] \startbuffer \dorecurse{30}{ \widowp

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Henri Menke
lties] \righthyphenmin=60 \lefthyphenmin=60 \def\Sblackbold#1{{\bf #1}} \def\Sdef#1{{#1}} \def\Sdefrf#1{{\bf #1}} \def\ShwJNR#1{{\blue\bf #1}} \def\Spospsmallcaps#1{{\sc #1}} \def\Spunctuation#1{{#1}} \def\Sxrefxrhw#1{{\bf #1}} \def\Sgroupintro#1{{\it #1}} \def\threeentries{   \vbox{\hsize=\textwidth    

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Thomas Widmann
in=60 \lefthyphenmin=60 \def\Sblackbold#1{{\bf #1}} \def\Sdef#1{{#1}} \def\Sdefrf#1{{\bf #1}} \def\ShwJNR#1{{\blue\bf #1}} \def\Spospsmallcaps#1{{\sc #1}} \def\Spunctuation#1{{#1}} \def\Sxrefxrhw#1{{\bf #1}} \def\Sgroupintro#1{{\it #1}} \def\threeentries{\ShwJNR{headphones}\page[no]\par\-\hskip .5em

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Thomas Widmann
pintro#1{{\it #1}} \def\threeentries{\ShwJNR{headphones}\page[no]\par\-\hskip .5em\Spospsmallcaps{noun}\Spunctuation{ }\Sdef{a pair of small speakers that you wear over your ears}\par\ShwJNR{heard}\page[no]\par\-\hskip .5em\Spospsmallcaps{verb}\Spunctuation{ }\Sgroupintro{the past tense and past

Re: [NTG-context] Bug in \startdocument

2017-01-25 Thread Hans Hagen
On 1/24/2017 8:53 PM, Henri Menke wrote: Dear devs, It is really convenient to set PDF metadata in \startdocument, however I noticed that there is a bug. The PDF subject is not set using metadata:subject but with metadata:subtitle. This is not a big issue by itself but merely a little

[NTG-context] Bug in \startdocument

2017-01-24 Thread Henri Menke
Dear devs, It is really convenient to set PDF metadata in \startdocument, however I noticed that there is a bug. The PDF subject is not set using metadata:subject but with metadata:subtitle. This is not a big issue by itself but merely a little confusing. What’s worse is that using

Re: [NTG-context] (again) PDF info fields

2016-07-17 Thread Pablo Rodriguez
gt;metadata:doi={doi:\documentvariable{doi}}, >metadata:keywords={\documentvariable{keywords}}] > > \startdocument > [title={Your title}, >subtitle={your subtitle}, >author={your name}, >address={your address}, >keywords={your keywo

Re: [NTG-context] (again) PDF info fields

2016-07-17 Thread Alan BRASLAU
={\documentvariable{keywords}}] \startdocument [title={Your title}, subtitle={your subtitle}, author={your name}, address={your address}, keywords={your keywords}, abstract={The abstract goes here.\par The Abstract and the keywords have to fit in this page.}, year={2016}, doi

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Marco Patzer
e=\documentvariable{title}] > > \mainlanguage [sv] > > > > \startdocument [title={\translate[en=Foo, sv=Bar]}] > >\input knuth > > \stopdocument > > > > This literally shows: > > > >Title: \translate [en=Foo, sv=Bar] > > >

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Hans Hagen
On 3/4/2016 7:58 AM, Marco Patzer wrote: Hi! How to expand \translate so that it doesn't show up in the PDF metadata? Example: \setupdocument [metadata:title=\documentvariable{title}] \mainlanguage [sv] \startdocument [title={\translate[en=Foo, sv=Bar]}] \input knuth \stopdocument

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
; It depends, when you want the title in the pdf without a manual > setting with \setupinteraction you can use the value of > “metadata:title” in your document. Thanks, again, these are useful pointers. In conclusion, good practice could be (but would this work?): \startdocument [

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
Alan BRASLAU <mailto:alan.bras...@cea.fr> 17. Januar 2016 um 23:39 On Sun, 17 Jan 2016 20:09:56 +0100 Thanks, again, these are useful pointers. In conclusion, good practice could be (but would this work?): \startdocument [title=My title, metadata:title=\documentvariable{title}, aut

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
Alan BRASLAU <mailto:alan.bras...@cea.fr> 17. Januar 2016 um 19:55 On Sun, 17 Jan 2016 19:27:31 +0100 How does this play with \startdocument [title=Document title, author=Me] It doesn’t matter if you set the values with \setupdocument or \startdocument. Here, I learn about metadata

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
ur document with \documentvariable{}. > > \setupdocument >[ metadata:title=Document title, > metadata:author=Author name] > > \setupinteraction[state=start] > > \starttext > \unknown > \stoptext > > Wolfgang How does this play with \startdocument [tit

Re: [NTG-context] parenthesis in Arabic text

2015-05-17 Thread Wolfgang Schuster
[bidi=global] \setupalign[righttoleft] \def\text{(ب)} \startdocument \text\footnote{\text}. \stopdocument gives the correct order in the text but the parenthesis are not adapted in the footnote. So in the text I get: (ب) And in the footnote: )ب(. You have to set

Re: [NTG-context] parenthesis in Arabic text

2015-05-17 Thread Sam Ḥilluc
] \setmainfont[amiri][features=arabic,range=arabic] \setupdirections[bidi=global] \setupalign[righttoleft] \def\text{(ب)} \startdocument \text\footnote{\text}. \stopdocument gives the correct order in the text but the parenthesis are not adapted in the footnote

[NTG-context] parenthesis in Arabic text

2015-05-16 Thread Sam Ḥilluc
)} \startdocument \text\footnote{\text}. \stopdocument gives the correct order in the text but the parenthesis are not adapted in the footnote. So in the text I get: (ب) And in the footnote: )ب(. ___ If your

Re: [NTG-context] \appendtoks and structuring commands

2015-03-27 Thread Sam Ḥilluc
On 2015-03-25 10:23, Hans Hagen wrote: \startsetups [document:titlepage] bla bla \documentvariable{title} bla bla \stopsetups \setupdocument [before=\directsetup{document:titlepage}] \startdocument[title=Some title] ... \stopdocument Thanks. Can one always use

Re: [NTG-context] \appendtoks and structuring commands

2015-03-27 Thread Hans Hagen
On 3/27/2015 11:27 PM, Sam Ḥilluc wrote: On 2015-03-25 10:23, Hans Hagen wrote: \startsetups [document:titlepage] bla bla \documentvariable{title} bla bla \stopsetups \setupdocument [before=\directsetup{document:titlepage}] \startdocument[title=Some title] ... \stopdocument Thanks

Re: [NTG-context] \appendtoks and structuring commands

2015-03-25 Thread Hans Hagen
\documentvariable{title} bla bla \stopsetups \setupdocument [before=\directsetup{document:titlepage}] \startdocument[title=Some title] ... \stopdocument - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
] \startTEXpage \externalfigure [cow] \stopTEXpage \stopsetups \startdocument \input knuth \stopdocument Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Marco Patzer
{document:after}] \startsetups [document:after] \startTEXpage \externalfigure [cow] \stopTEXpage \stopsetups \startdocument \input knuth \stopdocument Even shorter: \setupexternalfigures [location=default] \setupdocument [after={\pagefigure[cow]}] \startdocument \input knuth

Re: [NTG-context] Hooking stoptext

2013-10-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .
] \setupdocument [after=\setups{document:after}] \startsetups [document:after] \startTEXpage \externalfigure [cow] \stopTEXpage \stopsetups \startdocument \input knuth \stopdocument Marco OK... But - is there a solution more close and more Lua to that mine? The example is much simpler than

Re: [NTG-context] ConTeXt Manual Errata

2013-09-21 Thread Marco Patzer
is invited to take a break and grab a coffee. ;) Section 2.2. It is advisable to type the document setups before the \start--command, -- What start command? \starttext, perhaps? \starttext, \startdocument, \startcomponent, etc. Marco signature.asc Description: Digital signature

Re: [NTG-context] Request for metadata:keywords support in startdocument

2013-05-08 Thread Hans Hagen
On 5/1/2013 8:50 AM, Romain Diss wrote: Hi, This is probably adressed to Hans. Is it possible to add the support for metadata:keywords in \startdocument? scrn-ini.mkvi l. 197 +++ \doifvariable{document}{metadata:keywords} {\setupinteraction[\c!subject=\documentvariable{metadata:keywords

[NTG-context] Request for metadata:keywords support in startdocument

2013-05-01 Thread Romain Diss
Hi, This is probably adressed to Hans. Is it possible to add the support for metadata:keywords in \startdocument? scrn-ini.mkvi l. 197 +++ \doifvariable{document}{metadata:keywords} {\setupinteraction[\c!subject=\documentvariable{metadata:keywords}]}% Thank you in advance. -- Romain Diss

[NTG-context] Project structure and path evaluation

2013-04-25 Thread contact
there is an example with \startdocument ... \stopdocument. But I don't understand where I should use these commands. From the source, it looks like \starttex ... \stoptext with the ability to register a before and after command. I am under the impression that I have to choose between using

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-10 Thread Hans Hagen
] \unexpanded\def\MyChapterTitle#1#2% {\framed [offset=overlay, frame=off, width=\textwidth, align={middle,lohi}] {#1\blank#2}} \setuphead [chapter] [header=high, command=\MyChapterTitle, style=\bfc, numberstyle=\bfb] \setuplabeltext [chapter=Chapter~] \startdocument

Re: [NTG-context] back-up.lua; mtx-epub.lua

2012-06-08 Thread Aditya Mahajan
to typeset document title \stopsetups \setupdocument [title={...}, author={...}, date={...}, ] \startdocument \stopdocument rather than the different custom solutions that are floating around. Aditya

Re: [NTG-context] Hooking \stoptext

2012-03-07 Thread Wolfgang Schuster
{\ctxlua{…}% \stoptext} and use them instead of \starttext and \stoptext. Or you use the predefined document environment which has before and after keys. \setupdocument[after={\blank\midaligned{\bf THE END}}] \startdocument \input knuth \stopdocument Wolfgang

[NTG-context] Header spoils X(HT)ML export

2011-12-06 Thread Andreas Harder
=yes,xhtml=yes,css=yes] \startsetups document:start \settaggedmetadata[title=\documentvariable{title}] \stopsetups \startdocument [title=This document title is wrapped in section-tags] \startsection[title=test] \startparagraph \input tufte \stopparagraph \stopsection \stopdocument

[NTG-context] Error with export

2011-11-14 Thread Andreas Harder
Hi Hans, todays beta breaks the following example. It worked the day before yesterday. \setupbackend[export=yes] \definehighlight[Title][color=red] \startsetups document:start \Title{\documentvariable{title}} \stopsetups \startdocument [title=Test] some text \stopdocument Thank you

[NTG-context] beta

2011-10-12 Thread Hans Hagen
info in the tuc file. No big deal, just another format. == There has been a fix in otf contextual stuff ... for Idris (so that he can finish the context book sooner). == There are some new commands: \startdocument and \stopdocument. Copied from mag-1101: \starttyping \startdocument[settings

  1   2   >